package test;

class A {
}

class B extends A {
}

public class ComingThru {
	static String s = "-";

	public static void main(String[] args) {
		A[] aa = new A[2];
		System.out.println(aa.length);
		B[] ba = new B[2];
		sifter(aa);
		sifter(ba);
		sifter(7);
		System.out.println("Result = "+s);
	}

	static void sifter(A[]... a2) 
	{
		s += "1";
		System.out.println("s1 = "+s);
	}

	static void sifter(B[]... b1) 
	{
		s += "2";
		System.out.println("s2 = "+s);
	}

	static void sifter(B[] b1) 
	{
		s += "3";
		System.out.println("s3 = "+s);
	}

	static void sifter(Object o) 
	{
		s += "4";
		System.out.println("s4 = "+s);
	}
}
